package com.study.opensource.spring.loop.service.impl;

import com.study.opensource.spring.loop.service.BService;
import com.study.opensource.spring.loop.service.CService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xubangbang
 * @date 2021/7/9 10:20
 */
@Service
public class BServiceImpl  implements BService {

    @Autowired
    private CService cService;
    @Override
    public void printB() {
        System.out.println(Thread.currentThread().getName()+ " : B");
        cService.printC();
    }
}
